import { createAPI } from '@/utils/request'

// export const getFreightList = () => {
//   return service.get('/manager/carriages')
// }

// 获取列表
export const getFreightList = () => createAPI(`/carriages`, 'get')

// 添加
export const addFreightList = data => createAPI(`/carriages`, 'post', data)

// 删除
export const delFreightList = id => createAPI(`/carriages/${id}`, 'delete')

// 编辑
export const editFreightList = (data) => createAPI(`/carriages`, 'post', data)
